<?php
namespace App\Common\Cla\ClaBase\Traits\ControllerModel\Page;

use App\Common as com;

/**
 * 控制器功能集
 */
trait ControllerFun {
	
	/**
	 * 批量导入数据到模板变量
	 * @param array $assign_array
	 * @return int 结果 [1]成功
	 */
	protected function batchAssign( $assign_array ){
		foreach( $assign_array as $assign_key => $assign_value ){
			$this->assign( $assign_key, $assign_value);
		}
		return 1;
	}

}
